//懒加载
import {
    lazy,
} from 'react'

// 防抖
import {
    AuthComponent
} from '../../components/suspense/index'

//二级路由
var CompanyBuild = lazy(() => import('./pages/CompanyBuild')) //公司架构
var LimitPlan = lazy(() => import('./pages/LimitPlan')) //权限分配
var StaffManage = lazy(() => import('./pages/StaffManage')) //员工管理
// var StaffHandle = lazy(() => import('./pages/StaffHandle')) //员工操作日志

var Notfound = lazy(() => import('../../components/Notfound')) //404页面

export default [ //Goods模块的二级路由
    {
        path: '/index/StaffManage',
        element: < AuthComponent permission={6}> < StaffManage /> </AuthComponent>
    },
    {
        path: '/index/LimitPlan',
        element: < AuthComponent permission={6}> < LimitPlan /> </AuthComponent>
    },
    {
        path: '/index/CompanyBuild',
        element: < AuthComponent permission={6}> < CompanyBuild /> </AuthComponent>
    },
    {   
        path: '*',
        element: < Notfound />
    },
]